<?php

namespace App\Http\Requests\Api\Message;

class MessageSendRequest extends FormRequest
{
    public function rules()
    {
        return [
            'to_id' => 'required|integer|exists:users,id',
            'content' => 'required|string',
            'type' => 'required|string',
            'timestamp' => 'boolean',
            'uuid' =>  'required|string',
            'thumbnail' =>  'string|nullable',
            'length' =>  'nullable',
        ];
    }
}
